package com.ws.ssmzongjie3.service.impl;

import com.ws.ssmzongjie3.bean.Acl_Permission;
import com.ws.ssmzongjie3.bean.Acl_Role;
import com.ws.ssmzongjie3.mapper.Acl_PermissionMapper;
import com.ws.ssmzongjie3.service.Acl_PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Acl_PermissionServiceImpl implements Acl_PermissionService {
    @Autowired
    private Acl_PermissionMapper acl_PermissionMapper;
    @Override
    public int deleteAcl_PermissionById(Acl_Permission acl_Permission) {

        return acl_PermissionMapper.deleteAcl_PermissionById(acl_Permission);
    }

    @Override
    public int insertAcl_Permission(Acl_Permission acl_Permission) {

        return acl_PermissionMapper.insertAcl_Permission(acl_Permission);
    }

    @Override
    public int updateAcl_Permission(Acl_Permission acl_Permission) {
        return acl_PermissionMapper.updateAcl_Permission(acl_Permission);
    }

    @Override
    public Acl_Permission getAcl_PermissionById(Acl_Permission acl_Permission) {
        return acl_PermissionMapper.getAcl_PermissionById(acl_Permission);
    }

    @Override
    public List<Acl_Permission> listAcl_Permission(Acl_Permission acl_Permission) {
        return acl_PermissionMapper.listAcl_Permission(acl_Permission);
    }


    @Override
    public List<Integer> listPermissionsByRoleId(Acl_Role acl_role) {
        return acl_PermissionMapper.listPermissionsByRoleId(acl_role);
    }


}
